package cn.echoedu.control;

import java.sql.SQLException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.echoedu.command.base.SuccessParam;
import cn.echoedu.entity.HomePageImage;
import cn.echoedu.entity.receivecommand.IndexPicQueryReceive;
import cn.echoedu.model.HomePageImageModel;
import cn.echoedu.service.ResponseService;
import cn.echoedu.util.WebContext;

public class IndexPicControl extends BaseControl{
	
	public void doIndexPicQuery(HttpServletRequest request,
			HttpServletResponse response, IndexPicQueryReceive indexpicquery) throws SQLException {
		// TODO Auto-generated method stub
		List<HomePageImage> homepageimagelist=getHomePageImageModel().queryHomePageImage(indexpicquery);
		SuccessParam successparam = new SuccessParam();
		successparam.setParam(homepageimagelist);
		successparam.setRequest(request);
		successparam.setResponse(response);
		successparam.setToken(indexpicquery.getToken());
		getResponseService().doIndexPicQuery(successparam);
	
	}

}
